#
# python-ebay - A python implementation of IContact API 2.0
# Copyright (c) 2011 Alvin Delagon (http://www.alvinatorsplayground.blogspot.com/)
# All rights reserved.
#

import json
from ConfigParser import ConfigParser
from ebay.finding import FindingAPI


if __name__ == "__main__":
    c = ConfigParser()
    c.read("config.cfg")
    url = c.get("sandbox", "FIND_URL")
    appId = c.get("sandbox", "APPID")
    format = c.get("sandbox", "RESPONSE_DATA_FORMAT")
    globalId = "EBAY-US"
    version = "1.0.0"
    pagination = 3

    f = FindingAPI(url, appId, globalId)
    r = f.searchByKeywords("Dog Food", 3)
    print r.request_url
    print r.dump()
